<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title> 文献医案编辑 </title>
    <link rel="stylesheet" type="text/css" href="/css/style.css" />
    <link rel="stylesheet" type="text/css" href="/css/stars.css" />
    <link rel="stylesheet" type="text/css" href="/css/yianedit.css" />
    <!-- OCR识别 -->
    <script src="/tesseract.js-offline-master/node_modules/tesseract.js/dist/tesseract.min.js"></script>
    <script src="/js/jquery-3.6.0.min.js"></script>
    <script src="/js/jquery-1.10.2.min.js"></script>
    <script src="/js/jquery.form.js"></script>
    <script src="/js/generic.js"></script>
    <script type="text/javascript" src="/js/xlsx.full.min.js"></script>
    <script type="text/javascript" src="/js/EasyUI/jquery.ui.widget.js"></script>
    <script type="text/javascript" src="/js/EasyUI/jquery.iframe-transport.js"></script>
    <script type="text/javascript" src="/js/EasyUI/jquery.fileupload.js"></script>
    <script type="text/javascript" src="/js/EasyUI/jquery.fileupload-process.js"></script>
    <script type="text/javascript" src="/js/EasyUI/jquery.fileupload-validate.js"></script>
    <script type="text/javascript" src="/js/EasyUI/jquery.fileupload-ui.js"></script>
</head>

<body>

<form id="filePost" th:fragment="yian_edit" method="post" enctype="multipart/form-data" onsubmit="return false;">
    <table class="maintable">
        <tr>
            <td class="rightmaintd" valign="top">

                <div class="fengexian"><!-- fengexian -------------------------------------------------------></div>
                <table class="leftrighttable" border="0" cellpadding="5"><tr>
                    <div class="core">
                        <p style="text-align:center">
                            OCR识别
                        </p>
                        <div class="source">
                            <img id="imgPreview" src="/images/OCR.png" alt="需要识别的图片">
                            <label for="fileInput">上传图片</label>
                            <input type="file" id="fileInput" accept="image/png,image/jpg,image/jpeg" onchange="ocrPreview()">
                        </div>
                        <div class="result">
                            <textarea name="" id="resultMsg" cols="30" rows="10"></textarea>
                            <button onclick="OCR()">图片识别</button>
                            <button id="copyBtn" onclick="copyToClipboard()">复制全文</button>
                        </div>
                    </div>
                    <div class="quanwen">
                        <p style="text-align:center">
                            全文内容录入
                        </p>
                        <textarea name="" id="FangFaoyuanwen" style="width: 994px; height: 200px;" th:text="${yian.getFangFaoyuanwen()}"></textarea>
                    </div>
                </tr>
                </table>
                <div class="fengexian"><!-- fengexian -------------------------------------------------------></div>
                <table class="leftrighttable" border="0" cellpadding="5">
                    <tr>
                        <td colspan="4"><span class="yianbiaoti">问</span></td>
                    </tr>

                    <tr>
                        <td width="13%" class="tdname" valign="top">主诉</td>
                        <td colspan="3">
                            <textarea id="zhushu" class="textareainput" style="width: 800px;" th:text="${yian.getZhushu()}"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td width="13%" class="tdname" valign="top">现病史</td>
                        <td colspan="3"><textarea id="xianbingshi" class="textareainput"
                                                  style="width: 800px;height:100px;" th:text="${yian.getXianbingshi()}"></textarea></td>
                    </tr>
                    <tr>
                        <td width="13%" class="tdname">既往史 </td>
                        <td colspan="3"><textarea id="jiwangshi" class="textareainput"
                                                  style="width: 800px;" th:text="${yian.getJws()}"></textarea></td>
                    </tr>
                    <tr>
                    <td width="12%" class="tdname">家族史 </td>
                    <td colspan="3"><textarea id="jiazushi" class="textareainput"
                                              style="width: 800px;" th:text="${yian.getJzs()}"></textarea></td>
                </tr>
                </table>

                <div class="fengexian"><!-- fengexian----------------------------------------------------- --></div>
                <table class="leftrighttable" border="0" cellpadding="5">
                    <tr>
                        <td colspan="5"><span class="yianbiaoti">
                  <p style="font-size:18px;">舌脉</p>
                </span></td>
                    </tr>
                    <tr>
                        <td class="tdname" valign="top" align="right">
                            <br />

                            <p>舌脉总体情况</p><br /><br /><br />

                            <p>具体舌脉</p><br /><br /><br /><br /><br />

                        </td>

                        <td colspan="4" style="border:1px solid green;">
                            <table cellpadding="10">
                                <tr>
                                    <td colspan="3" style="height: 32px; width: 300px;">
                                        <textarea id="shezhen" class="textareainput" style="height: 26px; width: 270px; " th:text="${yian.getShezhen()}"></textarea>
                                    </td>
                                </tr>
                                <tr>
                                    <td id="shese">
                                        舌色<br />
                                        <label>
                                            <input type="checkbox" name="shese" value="淡" />淡
                                        </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label>
                                            <input type="checkbox" name="shese" value="绛" />绛
                                        </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label>
                                            <input type="checkbox" name="shese" value="尖红" />尖红
                                        </label>&nbsp;&nbsp;&nbsp;&nbsp;<br />
                                        <label>
                                            <input type="checkbox" name="shese" value="淡红" />淡红
                                        </label>&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label>
                                            <input type="checkbox" name="shese" value="暗" />暗
                                        </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label>
                                            <input type="checkbox" name="shese" value="尖微红" />尖微红
                                        </label>&nbsp;<br />
                                        <label>
                                            <input type="checkbox" name="shese" value="淡白" />淡白
                                        </label>&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label>
                                            <input type="checkbox" name="shese" value="暗红" />暗红
                                        </label>&nbsp;&nbsp;&nbsp;
                                        <label>
                                            <input type="checkbox" name="shese" value="边尖红" />边尖红
                                        </label>&nbsp;<br />
                                        <label>
                                            <input type="checkbox" name="shese" value="红" />红
                                        </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label>
                                            <input type="checkbox" name="shese" value="紫" />紫
                                        </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label>
                                            <input type="checkbox" name="shese" value="根微黄" />根微黄
                                        </label>&nbsp;<br />
                                        <label>
                                            <input type="checkbox" name="shese" value="红绛" />红绛
                                        </label>&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label>
                                            <input type="checkbox" name="shese" value="淤点" />淤点
                                        </label>&nbsp;&nbsp;&nbsp;
                                        <label>
                                            <input type="checkbox" name="shese" value="根微腻" />根微腻
                                        </label>&nbsp;
                                    </td>

                                    <td id="shexing">
                                        舌形<br />
                                        <label>
                                            <input type="checkbox" name="shexing" value="胖大" />胖大
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="shexing" value="瘦薄" />瘦薄
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="shexing" value="点刺" />点刺
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="shexing" value="裂纹" />裂纹
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="shexing" value="齿痕" />齿痕
                                        </label><br />
                                    </td>

                                    <td id="shetai" style="border:1px ">
                                        舌态<br />
                                        <label>
                                            <input type="checkbox" name="shetai" value="歪斜" />歪斜
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="shetai" value="颤动" />颤动
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="shetai" value="吐弄" />吐弄
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="shetai" value="短缩" />短缩
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="shetai" value="麻痹" />麻痹
                                        </label><br />
                                    </td>
                                    <td id="taizhi">
                                        苔质<br />
                                        <label>
                                            <input type="checkbox" name="taizhi" value="苔薄" />苔薄
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="taizhi" value="苔厚" />苔厚
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="taizhi" value="苔润" />苔润
                                        </label>&nbsp;
                                        <label>
                                            <input type="checkbox" name="taizhi" value="苔燥" />苔燥
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="taizhi" value="苔腻" />苔腻
                                        </label>&nbsp;
                                        <label>
                                            <input type="checkbox" name="taizhi" value="苔腐" />苔腐
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="taizhi" value="剥落" />剥落
                                        </label>&nbsp;
                                        <label>
                                            <input type="checkbox" name="taizhi" value="水滑" />水滑
                                        </label>
                                    </td>

                                    <td id="taise">
                                        苔色<br />
                                        <label>
                                            <input type="checkbox" name="taise" value="白苔" />白苔
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="taise" value="黄苔" />黄苔
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="taise" value="灰苔" />灰苔
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="taise" value="黑苔" />黑苔
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="taise" value="黑苔" style="display:none" />
                                        </label><br />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdname" valign="top" align="right" width="13%">
                            <p>不常用舌苔</p>
                        </td>
                        <!--添加其他舌象-->
                        <td>
                            <div>
                                <input type="text" id="userInput" onkeypress="addEnter_2(event)">
                                <button onclick="addCustomOption()">添加不常用舌苔</button>
                                <button onclick="clearTable_2()">清空表格</button>
                            </div>

                        </td>
                    </tr>
                    <!--添加其他舌象生成区-->

                    <tr>
                        <td class="tdname" valign="top" align="right" width="13%">
                            <p>舌苔生成区</p>
                        </td>
                        <td colspan="4">
                            <table class="xiyijianchabiao" id="resultTable">
                                <tr bgcolor="#f2f2f2">
                                    <th width="20%">序号</th>
                                    <th width="30%">类型</th>
                                    <th width="50%">值</th>
                                </tr>
                                <tr th:each="item, itemStat : ${she}">
                                    <td th:text="${itemStat.count}"></td>
                                    <td>
                                        <span th:if="${item.name != null and not #strings.isEmpty(item.name)}">自定义</span>
                                        <span th:if="${item.shese != null and not #strings.isEmpty(item.shese)}">舌色</span>
                                        <span th:if="${item.shexing != null and not #strings.isEmpty(item.shexing)}">舌形</span>
                                        <span th:if="${item.shetai != null and not #strings.isEmpty(item.shetai)}">舌态</span>
                                        <span th:if="${item.taizhi != null and not #strings.isEmpty(item.taizhi)}">苔质</span>
                                        <span th:if="${item.taise != null and not #strings.isEmpty(item.taise)}">苔色</span>
                                        <!-- Add more conditions for other attributes -->
                                    </td>
                                    <td>
                                        <span th:if="${item.name != null}" th:text="${item.name}"></span>
                                        <span th:if="${item.shese != null}" th:text="${item.shese}"></span>
                                        <span th:if="${item.shexing != null}" th:text="${item.shexing}"></span>
                                        <span th:if="${item.shetai != null}" th:text="${item.shetai}"></span>
                                        <span th:if="${item.taizhi != null}" th:text="${item.taizhi}"></span>
                                        <span th:if="${item.taise != null}" th:text="${item.taise}"></span>
                                        <!-- Add more spans for other attributes -->
                                    </td>
                                </tr>
                            </table>
                            </br>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdname" valign="top" align="right" width="13%">
                            <br />
                            <p>具体脉象</p>
                            <br /><br />
                            <p></p>
                        </td>
                        <td colspan="4" style="border:1px solid green;">
                            <table cellpadding="8">
                                <tr>
                                    <td>
                                        左右<br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="左" onclick="updateSelection_M('左')" />左
                                        </label> &nbsp;&nbsp;&nbsp;
                                        <label>
                                            <input type="checkbox" name="fumai" value="右" onclick="updateSelection_M('右')" />右
                                        </label> &nbsp;&nbsp;&nbsp;
                                    </td>

                                    <td>
                                        寸关尺<br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="寸" onclick="updateSelection_M('寸')" />寸
                                        </label> &nbsp;&nbsp;&nbsp;
                                        <label>
                                            <input type="checkbox" name="fumai" value="关" onclick="updateSelection_M('关')" />关
                                        </label> &nbsp;&nbsp;&nbsp;
                                        <label>
                                            <input type="checkbox" name="fumai" value="尺" onclick="updateSelection_M('尺')" />尺
                                        </label> &nbsp;&nbsp;&nbsp;
                                    </td>
                                </tr>
                            </table>
                            <table cellpadding="8">
                                <tr>
                                    <td>
                                        浮脉类<br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="浮" onclick="updateSelection_M('浮')" />浮
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="洪" onclick="updateSelection_M('洪')" />洪
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="濡" onclick="updateSelection_M('濡')" />濡
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="散" onclick="updateSelection_M('散')" />散
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="芤" onclick="updateSelection_M('芤')" />芤
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="革" onclick="updateSelection_M('革')" />革
                                        </label><br />
                                    </td>
                                    <td>
                                        沉脉类<br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="沉" onclick="updateSelection_M('沉')" />沉
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="伏" onclick="updateSelection_M('伏')" />伏
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="牢" onclick="updateSelection_M('牢')" />牢
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="弱" onclick="updateSelection_M('弱')" />弱
                                        </label><br />
                                        <br />
                                        <br />
                                    </td>
                                    <td>
                                        数脉类<br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="数" onclick="updateSelection_M('数')" />数
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="促" onclick="updateSelection_M('促')" />促
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="疾" onclick="updateSelection_M('疾')" />疾
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="动" onclick="updateSelection_M('动')" />动
                                        </label><br />
                                        <br />
                                        <br />
                                    </td>
                                    <td>
                                        迟脉类<br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="迟" onclick="updateSelection_M('迟')" />迟
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="缓" onclick="updateSelection_M('缓')" />缓
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="涩" onclick="updateSelection_M('涩')" />涩
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="结" onclick="updateSelection_M('结')" />结
                                        </label><br />
                                        <br />
                                        <br />
                                    </td>
                                    <td>
                                        虚脉类<br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="虚" onclick="updateSelection_M('虚')" />虚
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="微" onclick="updateSelection_M('微')" />微
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="细" onclick="updateSelection_M('细')" />细
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="代" onclick="updateSelection_M('代')" />代
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="短" onclick="updateSelection_M('短')" />短
                                        </label><br />
                                        <br />
                                    </td>
                                    <td>
                                        实脉类<br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="实" onclick="updateSelection_M('实')" />实
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="滑" onclick="updateSelection_M('滑')" />滑
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="紧" onclick="updateSelection_M('紧')" />紧
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="弦" onclick="updateSelection_M('弦')" />弦
                                        </label><br />
                                        <label>
                                            <input type="checkbox" name="fumai" value="长" onclick="updateSelection_M('长')" />长
                                        </label><br />
                                        <br />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdname" valign="top" align="right" width="13%">
                            <p>其他脉象</p>
                        </td>
                        <td>
                            <div>
                                <input type="text" id="userInputText" placeholder="请输入内容">
                                <button onclick="addToTable_M()">添加</button>
                                <button onclick="clearTable_M()">清空表格</button>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdname" valign="top" align="right" width="13%">
                            <p>脉象生成区</p>
                        </td>
                        <td colspan="4">
                            <table class="xiyijianchabiao" id="resultTable_2">
                                <thead>
                                <tr bgcolor="#f2f2f2">
                                    <th>序号</th>
                                    <th>内容</th>
                                </tr>
                                </thead>
                                <tbody id="tableBody_M">
                                <tr th:each="content, index : ${mai}">
                                    <td th:text="${index.index + 1}">1</td>
                                    <td>
                                        <span th:if="${content.name != null}" th:text="${content.name}"></span>
                                        <span th:if="${content.fumai != null}" th:text="${content.fumai}"></span>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </td>
                    </tr>

                </table>
                <div class="fengexian"><!-- fengexian --></div>


                <table width="950" class="leftrighttable" border="0" cellpadding="5" style="margin-left:20px;border:0px;">
                    <tr>
                        <td width="440" colspan="2"><span class="yianbiaoti">症候</span></td>
                        <td width="510" colspan="2"><span class="yianbiaoti">&nbsp;</span></td>
                    </tr>
                    <tr>
                        <td>
                            <div class="dropdown">
                                <label for="select1">寒热</label><input type="text" id="select1" placeholder="请选择" readonly onclick="toggleDropdown('dropdown1')" th:value="${yian.getHanre()}">
                                <div id="dropdown1" class="dropdown-content"></div>
                            </div>
                        </td>
                        <td>
                            <div class="dropdown">
                                <label for="select2">汗证</label><input type="text" id="select2" placeholder="请选择" readonly onclick="toggleDropdown('dropdown2')" th:value="${yian.getHanzhen()}">
                                <div id="dropdown2" class="dropdown-content"></div>
                            </div>
                        </td>
                        <td>
                            <div class="dropdown">
                                <label for="select3">全身/形体</label><input type="text" id="select3" placeholder="请选择" readonly onclick="toggleDropdown('dropdown3')" th:value="${yian.getXingti()}">
                                <div id="dropdown3" class="dropdown-content"></div>
                            </div>
                        </td>
                        <td>
                            <div class="dropdown">
                                <label for="select4">神志</label><input type="text" id="select4" placeholder="请选择" readonly onclick="toggleDropdown('dropdown4')" th:value="${yian.getShenzhi()}">
                                <div id="dropdown4" class="dropdown-content"></div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="dropdown">
                                <label for="select5">饮食</label><input type="text" id="select5" placeholder="请选择" readonly onclick="toggleDropdown('dropdown5')" th:value="${yian.getYinshi()}">
                                <div id="dropdown5" class="dropdown-content"></div>
                            </div>
                        </td>
                        <td>
                            <div class="dropdown">
                                <label for="select6">饮水</label><input type="text" id="select6" placeholder="请选择" readonly onclick="toggleDropdown('dropdown6')" th:value="${yian.getYinshui()}">
                                <div id="dropdown6" class="dropdown-content"></div>
                            </div>
                        </td>
                        <td>
                            <div class="dropdown">
                                <label for="select7">小便</label><input type="text" id="select7" placeholder="请选择" readonly onclick="toggleDropdown('dropdown7')" th:value="${yian.getXiaobian()}">
                                <div id="dropdown7" class="dropdown-content"></div>
                            </div>
                        </td>
                        <td>
                            <div class="dropdown">
                                <label for="select8">大便</label><input type="text" id="select8" placeholder="请选择" readonly onclick="toggleDropdown('dropdown8')" th:value="${yian.getDabian()}">
                                <div id="dropdown8" class="dropdown-content"></div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="dropdown">
                                <label for="select9">睡眠</label><input type="text" id="select9" placeholder="请选择" readonly onclick="toggleDropdown('dropdown9')" th:value="${yian.getShuimian()}">
                                <div id="dropdown9" class="dropdown-content"></div>
                            </div>
                        </td>
                        <td>
                            <div class="dropdown">
                                <label for="select10">语音</label><input type="text" id="select10" placeholder="请选择" readonly onclick="toggleDropdown('dropdown10')" th:value="${yian.getYuyan()}">
                                <div id="dropdown10" class="dropdown-content"></div>
                            </div>
                        </td>
                        <td>
                            <div class="dropdown">
                                <label for="select11">头面</label><input type="text" id="select11" placeholder="请选择" readonly onclick="toggleDropdown('dropdown11')" th:value="${yian.getToumian()}">
                                <div id="dropdown11" class="dropdown-content"></div>
                            </div>
                        </td>
                        <td>
                            <div class="dropdown">
                                <label for="select12">头部</label><input type="text" id="select12" placeholder="请选择" readonly onclick="toggleDropdown('dropdown12')" th:value="${yian.getToubu()}">
                                <div id="dropdown12" class="dropdown-content"></div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="dropdown">
                                <label for="select13">耳目</label><input type="text" id="select13" placeholder="请选择" readonly onclick="toggleDropdown('dropdown13')" th:value="${yian.getErmu()}">
                                <div id="dropdown13" class="dropdown-content"></div>
                            </div>
                        </td>
                        <td>
                            <div class="dropdown">
                                <label for="select14">口鼻咽</label><input type="text" id="select14" placeholder="请选择" readonly onclick="toggleDropdown('dropdown14')" th:value="${yian.getKoubiyan()}">
                                <div id="dropdown14" class="dropdown-content"></div>
                            </div>
                        </td>
                        <td>
                            <div class="dropdown">
                                <label for="select15">颈项</label><input type="text" id="select15" placeholder="请选择" readonly onclick="toggleDropdown('dropdown15')" th:value="${yian.getJingxiang()}">
                                <div id="dropdown15" class="dropdown-content"></div>
                            </div>
                        </td>
                        <td>
                            <div class="dropdown">
                                <label for="select16">胸腹</label><input type="text" id="select16" placeholder="请选择" readonly onclick="toggleDropdown('dropdown16')" th:value="${yian.getXiongfu()}">
                                <div id="dropdown16" class="dropdown-content"></div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="dropdown">
                                <label for="select17">腰背</label><input type="text" id="select17" placeholder="请选择" readonly onclick="toggleDropdown('dropdown17')" th:value="${yian.getYaobei()}">
                                <div id="dropdown17" class="dropdown-content"></div>
                            </div>
                        </td>
                        <td>
                            <div class="dropdown">
                                <label for="select18">四肢</label><input type="text" id="select18" placeholder="请选择" readonly onclick="toggleDropdown('dropdown18')" th:value="${yian.getSizhi()}">
                                <div id="dropdown18" class="dropdown-content"></div>
                            </div>
                        </td>
                        <td>
                            <div class="dropdown">
                                <label for="select19">月经</label><input type="text" id="select19" placeholder="请选择" readonly onclick="toggleDropdown('dropdown19')" th:value="${yian.getYuejing()}">
                                <div id="dropdown19" class="dropdown-content"></div>
                            </div>
                        </td>
                        <td>
                            <div class="dropdown">
                                <label for="select20">白带</label><input type="text" id="select20" placeholder="请选择" readonly onclick="toggleDropdown('dropdown20')" th:value="${yian.getBaidai()}">
                                <div id="dropdown20" class="dropdown-content"></div>
                            </div>
                        </td>
                    </tr>
                    <tr>

                        <td width="405" colspan="3">
                            <div style="margin-top: 1px; ">
                                <div class="dropdown">
                                    <label for="select21">搜索症候</label><input type="text" id="select21" placeholder="请选择" readonly onclick="toggleDropdown('dropdown21') " >
                                    <div id="dropdown21" class="dropdown-content"></div>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td valign="top" align="right">
                            手动症候
                        </td>
                        <td colspan="3">
                            <input type="text" id="shoudongZhenghou" class="textinput_ai"  th:value="${zhenghou}">
                        </td>
                    </tr>

                </table>

                <div class="fengexian"><!-- fengexian --></div>
                <table width="950" class="leftrighttable" border="0" cellpadding="5" style="margin-left:20px;border:0px;">
                    <tr>
                        <td width="440" colspan="2"><span class="yianbiaoti">中医诊断</span></td>
                        <td width="510" colspan="2"><span class="yianbiaoti">&nbsp;</span></td>
                    </tr>
                    <tr>

                        <td width="135" valign="top" align="right">
                            <div style="margin-top:12px;">输入病名</div>
                        </td>


                        <td width="305">
                            <input type="text" id="zyzd" class="textinput_ai" th:value="${jibing}">
                            <div style="margin-top: 5px; ">

                                <div class="dropdown">
                                    <label for="select22">搜索病机</label><input type="text" id="select22" placeholder="请选择" readonly onclick="toggleDropdown('dropdown22')" class="dropdownLabel" >
                                    <div id="dropdown22" class="dropdown-content"></div>
                                </div>
                            </div>


                        </td>
                        <td width="85" valign="top">
                            <div style="margin-top:12px;">&nbsp;</div>
                        </td>
                        <td width="425">
                            &nbsp;
                        </td>
                    </tr>
                </table>
                <div class="fengexian"><!-- fengexian --></div>

                <table class="leftrighttable" border="0" cellpadding="5">
                    <tr>
                        <td><span class="yianbiaoti">西医检查数据</span> &nbsp; &nbsp;</td>
                        <td ><span onclick="showNoXiyi()"
                                   style="color:#009933; cursor:pointer;">简&nbsp;版</span></td>
                        <td><span onclick="showxiyibiao()" style="color:#009933; cursor:pointer;">详细版</span></td>

                    </tr>
                </table>
                <table class="leftrighttable" border="0" cellpadding="5" id="jianShiyan">
                    <tr>
                        <td colspan="4"><span class="yianbiaoti">实验室检查</span></td>
                    </tr>
                    <tr>
                        <td width="135" class="tdname" valign="top"></td>
                        <td colspan="3"><textarea id="sysjc" class="textareainput" style="width: 600px;" th:text="${yian.getSysjc()}"></textarea></td>
                    </tr>
                </table>
                <table id="xiyijianchabiao" class="leftrighttable" width="950" border="1" cellpadding="5" style="display:none;">
                    <tr>
                        <td width="130" align="right">检查项目</td>
                        <td width="200">
                            <select id="jianchaxiangmu" style="width:162px;border:1px solid #ddd;">
                                <option value="">请选择</option>
                                <option value="血常规">血常规</option>
                                <option value="尿常规">尿常规</option>
                                <option value="肝功能">肝功能</option>
                                <option value="心电图">心电图</option>
                                <option value="B超">B超</option>
                                <option value="X片">X片</option>
                            </select>
                        </td>
                        <td width="70" rowspan="4">
                            <input type="button" value="增加项&gt;" class="tianjiabtn" onclick="addXiyiJc();">
                        </td>
                        <td width="550" rowspan="4" valign="top">
                            <table class="xiyijianchabiao" id="divJiancha">
                                <tr bgcolor="#f2f2f2">
                                    <th width="10%">序号</th>
                                    <th width="18%">检查项目</th>
                                    <th width="20%">检查时间</th>
                                    <th width="27%">结果摘要</th>
                                    <th width="10%">图片</th>
                                    <th>操作</th>
                                </tr>
                                <tr th:each="content, index : ${jiancha}">
                                    <td th:text="${index.index + 1}">1</td>
                                    <td th:text="${content.getJianchaxiangmu()}"></td>
                                    <td th:text="${#dates.format(content.getShijian(), 'yyyy-MM-dd')}"></td>
                                    <td th:text="${content.getJieguo()}"></td>
                                    <td class="xiyiCell" th:text="${content.getTupian()}"></td>
                                    <td>
                                        <a href="#" onclick="deleteRow(this);">删除</a>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>

                    <tr>
                        <td align="right">检查时间</td>
                        <td><input type="date" id="shijian" class="yianinput"></td>
                    </tr>
                    <tr>
                        <td align="right">结果摘要</td>
                        <td><input type="text" id="jieguo" class="yianinput"></td>
                    </tr>
                    <tr>
                        <td align="right"></td>
                        <td>
                            <div class="fileUpload">
                                <span id="spJianchaImage">上传检查图片</span>
                                <input type="file" id="jianchafile" name="jianchafile" class="upload" />
                                <input type="hidden" id="hidJianchaPic" value="" />
                            </div>
                        </td>
                    </tr>
                </table>

                <div class="fengexian"><!-- fengexian --></div>

                <table width="950" class="leftrighttable" border="0" cellpadding="5" style="margin-left:20px;border:0px;">
                    <tr>
                        <td width="440" colspan="2"><span class="yianbiaoti">西医诊断</span></td>
                        <td width="510" colspan="2"><span class="yianbiaoti">&nbsp;</span></td>
                    </tr>
                    <tr>

                        <td width="135" valign="top" align="right">
                            <div style="margin-top:12px;">输入病名</div>
                        </td>
                        <td width="305">
                        <td valign="top">
                            <input type="text" id="xiyiBingming" class="textinput_ai" onkeypress="addEnter(event)">
                            <input type="button" value="添 加" onclick="addXyZhenduan();" class="tianjiabtn">
                            <input type="button" value="清 空" onclick="clearXyZhenduanShow();" class="tianjiabtn">
                            </div>
                            <label class="showAdd" id="xyBmshowAdd" th:text="${xiyiZhenduan}"> </label>
                        </td>
                    </tr>
                </table>
                <div class="fengexian"><!-- fengexian --></div>

                <table width="950" class="leftrighttable" border="0" cellpadding="5" style="margin-left:20px;border:0px;">
                    <tr>
                        <td width="440" colspan="2"><span class="yianbiaoti">治则治法</span></td>
                        <td width="510" colspan="2"><span class="yianbiaoti">&nbsp;</span></td>
                    </tr>
                    <tr>


                        <td width="135" valign="top" align="right">
                            <div style="margin-top:12px;"></div>
                        </td>
                        <td width="305">
                            <table>
                                <tr>
                                    <td valign="top">说明 </td>
                                    <td><textarea id="shuoming" class="textareainput" th:text="${yian.getShuoming}"></textarea></td>
                                </tr>

                                <tr>
                                    <td>治法 </td>
                                    <td>
                                        <select id="zhifa" style="width:265px;border:1px solid #ddd;">
                                            <option value="" th:selected="${yian.getZhifa()==''}">请选择</option>
                                            <option value="汗" th:selected="${yian.getZhifa()=='汗'}">汗</option>
                                            <option value="吐" th:selected="${yian.getZhifa()=='吐'}">吐</option>
                                            <option value="下" th:selected="${yian.getZhifa()=='下'}">下</option>
                                            <option value="和" th:selected="${yian.getZhifa()=='和'}">和</option>
                                            <option value="温" th:selected="${yian.getZhifa()=='温'}">温</option>
                                            <option value="清" th:selected="${yian.getZhifa()=='清'}">清</option>
                                            <option value="补" th:selected="${yian.getZhifa()=='补'}">补</option>
                                            <option value="消" th:selected="${yian.getZhifa()=='消'}">消</option>
                                            <option value="涩" th:selected="${yian.getZhifa()=='涩'}">涩</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="40">治则 </td>
                                    <td>
                                        <select id="zhize" style="width:265px;border:1px solid #ddd;">
                                            <option value="" th:selected="${yian.getZhize()==''}">请选择</option>
                                            <option value="早治防变" th:selected="${yian.getZhize()=='早治防变'}">早治防变</option>
                                            <option value="治病求本" th:selected="${yian.getZhize()=='治病求本'}">治病求本</option>
                                            <option value="扶正祛邪" th:selected="${yian.getZhize()=='扶正祛邪'}">扶正祛邪</option>
                                            <option value="急则治标" th:selected="${yian.getZhize()=='急则治标'}">急则治标</option>
                                            <option value="缓则治本" th:selected="${yian.getZhize()=='缓则治本'}">缓则治本</option>
                                            <option value="正治" th:selected="${yian.getZhize()=='正治'}">正治</option>
                                            <option value="反治" th:selected="${yian.getZhize()=='反治'}">反治</option>
                                            <option value="调整阴阳" th:selected="${yian.getZhize()=='调整阴阳'}">调整阴阳</option>
                                            <option value="调理气血" th:selected="${yian.getZhize()=='调理气血'}">调理气血</option>
                                            <option value="调理脏腑" th:selected="${yian.getZhize()=='调理脏腑'}">调理脏腑</option>
                                            <option value="三因制宜" th:selected="${yian.getZhize()=='三因制宜'}">三因制宜</option>
                                        </select>
                                    </td>

                                </tr>
                            </table>
                        </td>
                        <td width="85" valign="top">&nbsp;</td>
                        <td width="425">&nbsp;</td>
                    </tr>
                </table>

                <div class="fengexian"><!-- fengexian --></div>

                <table class="leftrighttable" border="0" cellpadding="5">
                    <tr>
                        <td><span class="yianbiaoti">医案处方</span> &nbsp; &nbsp; &nbsp;<a class="" style="cursor: pointer" onclick="showJianban()">简 版</a> &nbsp;
                            &nbsp; &nbsp;<a class=""  style="cursor: pointer" onclick="showXiangban()">详细版</a></td>
                    </tr>
                </table>
                <!--     简单版本     -->
                <table id="jianban" class="leftrighttable" width="950" cellpadding="5">
                    <tr>
                        <td align="right">处方名称</td>
                        <td><input type="text" id="jianCfmc" class="textinput" th:value="${yian.getChufangmingcheng()}"> </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <hr style="border:1px solid #eeeeee; width:95%; float:right;">
                            <table width="900" border="0" cellpadding="5">
                                <tr>
                                    <td align="center" colspan="1">
                                        <input id="fileupload_J" type="file" name="multiFiles"/>
                                    </td>
                                    <td width="20">
                                        <input type="button" id="startBtn" value="导入处方" class="denglubtn" onclick="batchload_J()">
                                    </td>
                                    <td align="right">
                                        <a target="_blank" data-icon="arrow-down" class="btn btn-green" href="/batchUpload/chufang_J.xlsx">下载模板</a>
                                    </td>
                                </tr>
                            </table>
                            <hr style="border:1px solid #eeeeee; width:95%; float:right;">
                        </td>
                    </tr>
                    <tr>
                        <td width="130" align="right">中药名</td>
                        <td>
                            <!--          显示中药-->
                            <input type="text" id="jianYaoming" class="textinput" onclick="searchZhongyao()" oninput="searchZhongyao()" >
                            <ul id="zhongyaoSearchResults" class="searchResults" style="display: none"></ul>
                            <div id='selectYM'
                                 style="width: 160px;display: none; border: 1px solid #ddd; position: relative;  z-index: 11; background: #fff; ">
                            </div>
                        </td>

                        <td colspan="2">
                            <table>
                                <tr>
                                    <td class="tdname">药量 </td>
                                    <td><input type="text" id="yaoliang_jd" class="yianinput"></td>
                                </tr>
                            </table>
                        </td>
                        <td align="right">备注</td>
                        <td><input type="text" id="beizhu_jd" class="yianinput">&nbsp;&nbsp;<input type="submit" value="增加药&gt;"
                                                                                                   onclick="addCf_J()" class="tianjiabtn"></td>
                    </tr>
                    <tr>
                        <td width="130" align="right">总药味: <span id="spnumber_jd"></span></td>
                        <td colspan="5">
                            <!--          <table class="xiyijianchabiao" id="zhongyaoShow_J">-->
                            <!--            <tr bgcolor="#f2f2f2">-->
                            <!--              <th width="13%">序号</th>-->
                            <!--              <th width="22%">中药名</th>-->
                            <!--              <th width="20%">药量</th>-->
                            <!--              <th width="20%">备注</td>-->
                            <!--              <th>操作</th>-->
                            <!--            </tr>-->
                            <!--          </table>-->
                            <div class="tianjiafangjidiv" id="zhongyaoShow_J" style="width: 100%; border:4px solid">

                            </div>
                            <br>
                            <br>
                        </td>
                    </tr>
                    <tr>
                        <td width="130" align="right" >剂数</td>
                        <td colspan="2">
                            <input type="text" id="jishu_jb" class="yianinput" th:value="${yian.getJishu()}">
                        </td>
                        <td width="130" align="right">煎服法</td>
                        <td colspan="2">
                            <input type="text" style="width:340px;" id="jianfufa_jb" class="yianinput" th:value="${yian.getJianfufa()}">
                        </td>
                    </tr>
                </table>

                <!-- 详版 ------------------------------------------------------------------ -->
                <table id="xiangban" style="display: none;" class="leftrighttable" border="1" cellpadding="5">
                    <tr>
                        <td width="130" class="tdname" th:value="${yian.getChufangmingcheng()}">处方名称 </td>
                        <td width="180"><input type="text" id="chufangmingcheng" class="yianinput"></td>
                        <td width="130" class="tdname">类型 </td>
                        <td width="180">
                            <select id="leixing" style="width:162px;">
                                <option value="自拟" th:selected="${yian.getLeixing()=='自拟'}">自拟</option>
                                <option value="成方化裁" th:selected="${yian.getLeixing()=='成方化裁'}">成方化裁</option>
                            </select>
                        </td>
                        <td width="120" class="tdname">剂型 </td>
                        <td width="210">
                            <select id="jixing" style="width:162px;">
                                <option value="汤" th:selected="${yian.getJixing()=='汤'}">汤</option>
                                <option value="丸" th:selected="${yian.getJixing()=='丸'}">丸</option>
                                <option value="散" th:selected="${yian.getJixing()=='散'}">散</option>
                                <option value="膏" th:selected="${yian.getJixing()=='膏'}">膏</option>
                                <option value="丹" th:selected="${yian.getJixing()=='丹'}">丹</option>
                                <option value="茶" th:selected="${yian.getJixing()=='茶'}">茶</option>
                                <option value="露" th:selected="${yian.getJixing()=='露'}">露</option>
                                <option value="锭" th:selected="${yian.getJixing()=='锭'}">锭</option>
                                <option value="酒" th:selected="${yian.getJixing()=='酒'}">酒</option>
                                <option value="条" th:selected="${yian.getJixing()=='条'}">条</option>
                                <option value="线" th:selected="${yian.getJixing()=='线'}">线</option>
                                <option value="洗" th:selected="${yian.getJixing()=='洗'}">洗</option>
                                <option value="搽" th:selected="${yian.getJixing()=='搽'}">搽</option>
                                <option value="栓" th:selected="${yian.getJixing()=='栓'}">栓</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdname">煎服法 </td>
                        <td>
                            <select id="jianfufa" style="width:162px;">
                                <option value=""  th:selected="${yian.getJianfufa()==''}">请选择</option>
                                <option value="久煎" th:selected="${yian.getJianfufa()=='久煎'}">久煎</option>
                                <option value="轻煎" th:selected="${yian.getJianfufa()=='轻煎'}">轻煎</option>
                                <option value="去渣再煎" th:selected="${yian.getJianfufa()=='去渣再煎'}">去渣再煎</option>
                                <option value="泡服" th:selected="${yian.getJianfufa()=='泡服'}">泡服</option>
                            </select>
                        </td>
                        <td class="tdname">服药时间 </td>
                        <td>
                            <select id="fuyaoshijian" style="width:162px;">
                                <option value="" th:selected="${yian.getFuyaoshijian()==''}">请选择</option>
                                <option value="饭前" th:selected="${yian.getFuyaoshijian()=='饭前'}">饭前</option>
                                <option value="饭后" th:selected="${yian.getFuyaoshijian()=='饭后'}">饭后</option>
                                <option value="早晨" th:selected="${yian.getFuyaoshijian()=='早晨'}">早晨</option>
                                <option value="中午" th:selected="${yian.getFuyaoshijian()=='中午'}">中午</option>
                                <option value="晚上" th:selected="${yian.getFuyaoshijian()=='晚上'}">晚上</option>
                            </select>
                        </td>
                        <td class="tdname">剂数 </td>
                        <td><input type="text" id="jishu" class="yianinput" th:value="${yian.getJishu()}"></td>
                    </tr>
                    <tr>
                        <td class="tdname">使用方法 </td>
                        <td>
                            <select id="shiyongfangfa" style="width:162px;">
                                <option value="" th:selected="${yian.getShiyongfangfa()==''}">请选择</option>
                                <option value="内用" th:selected="${yian.getShiyongfangfa()=='内用'}">内用</option>
                                <option value="外用" th:selected="${yian.getShiyongfangfa()=='外用'}">外用</option>
                                <option value="熏蒸" th:selected="${yian.getShiyongfangfa()=='熏蒸'}">熏蒸</option>
                                <option value="坐浴" th:selected="${yian.getShiyongfangfa()=='坐浴'}">坐浴</option>
                            </select>
                        </td>
                        <td class="tdname">次数和药量 </td>
                        <td>
                            <input type="text" id="cishuyaoliang" class="yianinput" th:value="${yian.getCishuyaoliang()}">
                        </td>
                        <td class="tdname"> </td>
                        <td> </td>
                    </tr>
                    <tr>
                        <td class="tdname">服后反馈 </td>
                        <td>
                            <select id="fuhoufankui" style="width:162px;">
                                <option value="" th:selected="${yian.getFuhoufankui()==''}">请选择</option>
                                <option value="痊愈" th:selected="${yian.getFuhoufankui()=='痊愈'}">痊愈</option>
                                <option value="好转" th:selected="${yian.getFuhoufankui()=='好转'}">好转</option>
                                <option value="不详" th:selected="${yian.getFuhoufankui()=='不详'}">不详</option>
                            </select>
                        </td>
                        <td class="tdname">其他事项 </td>
                        <td>
                            <input type="text" id="qitashixiang" class="yianinput" th:value="${yian.getQitashixiang()}">
                        </td>
                        <td class="tdname"> </td>
                        <td> </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <hr style="border:1px solid #eeeeee; width:95%; float:right;">
                            <table width="900" border="0" cellpadding="5">
                                <tr>
                                    <td align="center" colspan="1">
                                        <input id="fileupload_X" type="file" name="multiFiles"/>
                                    </td>
                                    <td width="20">
                                        <input type="button" value="导入处方" class="denglubtn" onclick="batchload_X()">
                                    </td>
                                    <td align="right">
                                        <a target="_blank" data-icon="arrow-down" class="btn btn-green" href="/batchUpload/chufang_X.xlsx">下载模板</a>
                                    </td>
                                </tr>
                            </table>
                            <hr style="border:1px solid #eeeeee; width:95%; float:right;">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <table width="900" border="0" cellpadding="5">

                                <tr>
                                    <td width="110" align="right"> 中药名</td>
                                    <td>
                                        <input type="text" id="zhongyaoming" class="textinput" onclick="searchZhongyao_X()" oninput="searchZhongyao_X()">
                                        <ul id="zhongyaoSearchResults_X" class="searchResults" style="display: none"></ul>
                                        <div id='selectZYM'
                                             style="width: 160px;display: none; border: 1px solid #ddd; position: relative; z-index: 11; background: #fff; ">

                                        </div>
                                    </td>

                                    <td width="80" rowspan="6"><input type="button" value="增加药&gt;" class="tianjiabtn" onclick="addCf_X()"></td>
                                    <td width="30" rowspan="6" valign="top">
                                        &nbsp; 总药味:  <span id="spnumber_X"></span></td>
                                    <td width="500" rowspan="6">
                                        <div class="tianjiafangjidiv" id="zhongyaoShow_X" style="width: 100%; border:4px solid">

                                        </div>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="right">药量</td>
                                    <td><input type="text" id="yaoliang" class="yianinput"></td>
                                </tr>
                                <tr>
                                    <td align="right"></td>
                                    <td>
                                        <input type="radio" id="jinzhi" name="jinguzhi" value="今制" checked="checked">今制 <input type="radio"
                                                                                                                                   id="guzhi" name="jinguzhi" value="古制">古制
                                        <select id="daiding">
                                            <option value="待定">待定</option>
                                            <option value="君">君</option>
                                            <option value="臣">臣</option>
                                            <option value="配">配</option>
                                            <option value="佐">佐</option>
                                            <option value="伍">伍</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">炮制</td>
                                    <td><input type="text" id="paozhi" class="yianinput"></td>
                                </tr>
                                <tr>
                                    <td align="right">产地</td>
                                    <td><input type="text" id="chandi" class="yianinput"></td>
                                </tr>
                                <tr>
                                    <td align="right">备注</td>
                                    <td>
                                        <select id="beizhu" style="width:162px;">
                                            <option value="">请选择</option>
                                            <option value="先煎">先煎</option>
                                            <option value="后下">后下</option>
                                            <option value="另煎">另煎</option>
                                            <option value="包煎">包煎</option>
                                        </select>
                                    </td>
                                </tr>
                            </table>

                        </td>
                    </tr>
                </table>
                <table class="leftrighttable" border="0" cellpadding="5">
                    <tr>
                        <td colspan="4"><span class="yianbiaoti">其他医嘱</span></td>
                    </tr>
                    <tr>
                        <td width="135" class="tdname" valign="top"></td>
                        <td colspan="3"><textarea id="qtyz" class="textareainput" style="width: 600px;" th:text="${yian.getQtyz()}"></textarea></td>
                    </tr>
                </table>


                <div class="fengexian"><!-- fengexian --></div>

                <table class="leftrighttable" border="0" cellpadding="5">
                    <tr>
                        <td colspan="4"><span class="yianbiaoti">药后反馈</span></td>
                    </tr>
                    <tr>
                        <td width="135" class="tdname" valign="top"></td>
                        <td colspan="3"><textarea id="bafx" class="textareainput" style="width: 600px;" th:text="${yian.getBafx()}"></textarea></td>
                    </tr>
                </table>

                <div class="fengexian"><!-- fengexian --></div>

                <table class="leftrighttable" border="0" cellpadding="5">
                    <tr>
                        <td colspan="4"><span class="yianbiaoti">病案评论及要点</span></td>
                    </tr>
                    <tr>
                        <td width="135" class="tdname" valign="top"></td>
                        <td colspan="3"><textarea id="xxxd" class="textareainput" style="width: 600px;" th:text="${yian.getXxxd()}"></textarea></td>
                    </tr>
                </table>
                <div class="fengexian"><!-- fengexian --></div>
                <table class="leftrighttable" border="0" cellpadding="5" style="display:none" id="starTable">
                    <tr>
                        <th>评分：</th>
                        <td><span id="pingfen" class="yianbiaoti"></span></td>
                        <td>
                            <div class="stars">
                                <ul id="pingStar">
                                    <li rel="1" title="1分">★</li>
                                    <li rel="2" title="2分">★</li>
                                    <li rel="3" title="3分">★</li>
                                    <li rel="4" title="4分">★</li>
                                    <li rel="5" title="5分">★</li>
                                    <li><span id="dir"></span></li>
                                </ul>
                                <input type="hidden" value="0" id="startP">
                            </div>
                        </td>
                    </tr>
                </table>
                <div class="fengexian"><!-- fengexian --></div>
                <div class="shenhediv">
                    <input type="button" value="保&nbsp;&nbsp;存" id="saveButton" class="baocunbtn"
                           onclick="saveBtn();">
                    <p id="submitShow" class="shownone" th:text="'  创建用户：'+ ${yian.getCreateuser()} +'  时间：'+ ${#dates.format(yian.getCreatetime(), 'yyyy-MM-dd HH:mm:ss')}"></p>
                    <input type="button" value="一&nbsp;&nbsp;审"  id="ysBtn" class="baocunbtn shownone"
                           onclick="ysFun();">
                    <p  id="tjShow" class="shownone" th:text="'  提交用户：'+ ${yian.getFirstchangeuser()}+'  时间：'+${#dates.format(yian.getFirstchangetime(), 'yyyy-MM-dd HH:mm:ss')}"></p>
                    <input type="button" value="二&nbsp;&nbsp;审"  id="esBtn" class="baocunbtn shownone"
                           onclick="esFun();">
                    <p id="ysShow" class="shownone" th:text="'  一审用户：' + (${yian.getFirstcheckuser()} ?: '') + '  时间：' + ${#dates.format(yian.getFirstchecktime(), 'yyyy-MM-dd HH:mm:ss')?: ''}"></p>
                    <p id="esShow" class="shownone" th:text="'  二审用户：'+ ${yian.getSecondcheckuser()?: ''}+'  时间：'+ ${#dates.format(yian.getSecondchecktime(), 'yyyy-MM-dd HH:mm:ss')?: ''}"></p>
                    <p id="shenhe" class="shownone" th:text="${yian.getShenhe()}"></p>
                    <!--审核状态占位-->
                    <p class="shownone" id="Userrole" th:text="${roleType}"></p>
                </div>
            </td>
        </tr>
    </table>
    <!--    下面两个表格不显示，占位-->
    <table class="shownone" id="tupianPre">
        <tbody>
        <tr th:each="image : ${jiancha}">
            <td>
                <img th:src="@{/loadImages/{imageName}(imageName=${image.getTupian()})}" onerror="this.onerror=null; this.src=null;"  />
            </td>
            <td th:text="${image.getTupian()}"></td>
        </tr>
        </tbody>
    </table>
    <table class="shownone" id="chufang_">
        <tr th:each="x : ${chufang}">
            <td th:text="${x.getZhongyaoming()}"></td>
            <td th:text="${x.getYaoliang()}"></td>
            <td th:text="${x.getDaiding()}"></td>
            <td th:text="${x.getPaozhi()}"></td>
            <td th:text="${x.getChandi()}"></td>
            <td th:text="${x.getBeizhu()}"></td>
        </tr>
    </table>
    <input type="hidden" th:value="${yian.getId()}" id="yianId">
</form>

</body>

</html>
<script type="text/javascript" src="/yianjs/edit1.js"></script>
<script type="text/javascript" src="/yianjs/edit2.js"></script>
<script type="text/javascript" src="/yianjs/edit3.js"></script>
<script type="text/javascript" src="/yianjs/edit4.js"></script>
<script type="text/javascript" src="/yianjs/edit5.js"></script>


